package com.wjw.cloud.common.util;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class AjaxResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    private String appcode = "0";
    private String msg = "";
    private Map<String, Object> map = null;

    public AjaxResponse() {
        this.map = new HashMap();
    }

    public void setData(String dataName, Object dataValue) {
        this.map.put(dataName, dataValue);
    }

    public Map<String, Object> getMap() {
        return this.map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public String getAppcode() {
        return this.appcode;
    }

    public void setAppcode(String appcode) {
        this.appcode = appcode;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setErrorMsg(String msg) {
        this.appcode = "1";
        this.msg = msg;
    }

}
